package kr.hkit.powerjava.chapter11.work;
import kr.hkit.powerjava.chapter11.work.Student;


public class UnderGraduate extends Student {
	String club;

	public UnderGraduate(String stdName, int stdNum, String sub, int grade,
			int credit, String club) {
		super(stdName, stdNum, sub, grade, credit);
		this.club = club;
		
	}

	public String getClub() {
		return club;
	}

	public void setClub(String club) {
		this.club = club;
	}

	@Override
	public String toString() {
		return "UnderGraduate [동아리명:" + club + ", 이름:" + stdName
				+ ", 학번:" + stdNum + ", 학과:" + sub + ", 학년" + grade
				+ ", 이수학점수" + credit + "]";
	}
	
}
